package com.example.cms.dao;

import com.example.cms.entity.Courses;
import com.example.cms.pojo.QueryPage;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CoursesDao {

    public List<Courses> selectCourses(QueryPage queryPage);//分页查询课程

    public Integer getNum();//计算数量

    public Integer deleteCourses(Integer coursesId);//删除

    public Integer updateCourses(Courses courses);//修改

    public Integer insertCourses(Courses courses);//插入

    List<Courses> selectAll();

}
